export const snTransactionTypes: any = {
  purchase_tradein_pending: {
    value: "purchase_tradein_pending",
    name: "设备回收-待确认",
    label: "设备回收-待确认",
    color: "",
  },
  purchase_tradein_complete: {
    value: "purchase_tradein_complete",
    name: "设备回收-已确认",
    label: "设备回收-已确认",
    color: "",
  },
  purchase_tradein_cancelled: {
    value: "purchase_tradein_cancelled",
    name: "设备回收-已取消",
    label: "设备回收-已取消",
    color: "",
  },
  purchase_regular_pending: {
    value: "purchase_regular_pending",
    name: "采购-待确认",
    label: "采购-待确认",
    color: "",
  },
  purchase_regular_complete: {
    value: "purchase_regular_complete",
    name: "采购-已确认",
    label: "采购-已确认",
    color: "",
  },
  purchase_regular_cancelled: {
    value: "purchase_regular_cancelled",
    name: "采购-已取消",
    label: "采购-已取消",
    color: "",
  },
  sales_regular_pending: {
    value: "sales_regular_pending",
    name: "销售-待确认",
    label: "销售-待确认",
    color: "",
  },
  sales_regular_complete: {
    value: "sales_regular_complete",
    name: "销售-完成",
    label: "销售-完成",
    color: "",
  },
  sales_regular_cancelled: {
    value: "sales_regular_cancelled",
    name: "销售-取消",
    label: "销售-取消",
    color: "",
  },
  sales_repair_pending: {
    value: "sales_repair_pending",
    name: "维修-待确认",
    label: "维修-待确认",
    color: "",
  },
  sales_repair_complete: {
    value: "sales_repair_complete",
    name: "维修-完成",
    label: "维修-完成",
    color: "",
  },
  sales_repair_cancelled: {
    value: "sales_repair_cancelled",
    name: "维修-取消",
    label: "维修-取消",
    color: "",
  },
};

export const snTransactionTypesList = Object.values(snTransactionTypes);

// ============================================================================
// SKU 状态
export const variantTransactionOrderTypes: any = {
  purchase_tradein: {
    value: "purchase_tradein",
    name: "设备回收订单",
    label: "设备回收订单",
    color: "",
    baseUrl: "",
  },
  purchase_regular: {
    value: "purchase_regular",
    name: "采购订单",
    label: "采购订单",
    color: "",
    baseUrl: "",
  },
  sales_regular: {
    value: "sales_regular",
    name: "销售订单",
    label: "销售订单",
    color: "",
    baseUrl: "",
  },
  sales_repair: {
    value: "sales_repair",
    name: "维修订单",
    label: "维修订单",
    color: "",
    baseUrl: "",
  },
};

export const variantTransactionOrderTypesList = Object.values(
  variantTransactionOrderTypes
);

export const variantStatusTypes: any = {
  locked: {
    value: "locked",
    name: "锁定",
    label: "锁定",
    color: "success",
    baseUrl: "",
  },
  cancelled: {
    value: "cancelled",
    name: "取消",
    label: "取消",
    color: "error",
    baseUrl: "",
  },
  available: {
    value: "available",
    name: "可用",
    label: "可用",
    color: "primary",
    baseUrl: "",
  },
  sold: {
    value: "sold",
    name: "已售",
    label: "已售",
    color: "info",
    baseUrl: "",
  },
};

export const variantTStatusTypesList = Object.values(variantStatusTypes);
